<?php

namespace plugin\admin\app\model;

use plugin\admin\app\model\Base;

/**
 * @property integer $id 自增主键(主键)
 * @property string $name 设计师姓名
 * @property string $phone_number 手机号码
 * @property string $email 邮箱地址
 * @property string $company_name 公司名称
 * @property string $3d_software 3D 制图软件
 * @property integer $is_approved 申请审核状态
 * @property string $approval_comment 审核意见
 * @property mixed $application_date 申请日期间
 */
class DesignerApplication extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_designer_application';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    // Constants for application review status
    const STATUS_PENDING = 0; // 未审核
    const STATUS_APPROVED = 1; // 审核已通过
    const STATUS_REJECTED = 2; // 审核未通过

    const STATUS_TEXT = [
        self::STATUS_PENDING => '未审核',
        self::STATUS_APPROVED => '审核已通过',
        self::STATUS_REJECTED => '审核未通过',
    ];
    
}
